package com.ls.fw.frame.data.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.ls.fw.frame.data.dao.DataTableInfoViewDao;
import com.ls.fw.frame.data.model.DataTableInfoView;
import com.ls.fw.frame.data.model.example.DataTableInfoViewExample;
import com.ls.fw.frame.data.vo.DataTableInfoViewVo;
import com.ls.fw.frame.data.service.DataTableInfoViewService;
import com.ls.fw.data.rdb.impl.dao.EntityDao;
import com.ls.fw.data.rdb.impl.service.EntityServiceAdapter;


/**
 * 
 * @author ls
 * 2016年06月10日 16时40分37秒
 */
@Service("dataTableInfoViewService")   
public class DataTableInfoViewServiceImpl extends EntityServiceAdapter<DataTableInfoView,DataTableInfoViewVo,java.lang.Long>  implements DataTableInfoViewService{
	
    private DataTableInfoViewDao dataTableInfoViewDao = null;
   
    @Resource
    public void setDataTableInfoViewDao(DataTableInfoViewDao dataTableInfoViewDao) {
		this.dataTableInfoViewDao = dataTableInfoViewDao;
    }
 
	
	@SuppressWarnings("unchecked")
	@Override
	public <D extends EntityDao<DataTableInfoView, DataTableInfoViewVo,java.lang.Long>> D getEntityDao(){
		return (D) dataTableInfoViewDao;
	}
	
	@Override
	public List<DataTableInfoView> selectByExample(DataTableInfoViewExample example) {
		return this.dataTableInfoViewDao.getMapper().selectByExample(example);
	}


	@Override
	public DataTableInfoView selectOneByExample(DataTableInfoViewExample example) {
		return this.dataTableInfoViewDao.getMapper().selectOneByExample(example);
	}

	@Override
	public DataTableInfoView selectOne(DataTableInfoView record) {
		return this.dataTableInfoViewDao.getMapper().selectOne(record);
	}


	@Override
	public List<DataTableInfoView> select(DataTableInfoView record) {
		return this.dataTableInfoViewDao.getMapper().select(record);
	}


	@Override
	public int deleteByExample(DataTableInfoViewExample example) {
		return this.dataTableInfoViewDao.getMapper().deleteByExample(example);
	}


	@Override
	public int updateByExampleSelective(DataTableInfoView record,
			DataTableInfoViewExample example) {
		return this.dataTableInfoViewDao.getMapper().updateByExampleSelective(record, example);
	}
}
